﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_main.Master" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="Com.Ompchina.Web.list" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="Model.Cms" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_main" runat="server">
<CustomControl:TermMenu runat="server" ID="ucMenu" />
<div class="w620 fr">
    <div class="pagename">您现在的位置：主页&gt;<%= ParentTerm.ParentTerm.TermID > 1 ? ParentTerm.TermName : SubTerm.TermName %></div>
    <div class="w620 mt40">
        <div class="block-title clearfix">
            <p class="fl t<%= pID %>">
            <%= ParentTerm.ParentTerm.TermID > 1 ? ParentTerm.ParentTerm.TermName : ParentTerm.TermName%>
            </p>            
        </div>
        <ul class="w620 idxlist fl mt15">
            <%
                int pageSize=10,recordCount=0;
                IList<NewsInfo> list = this._GetNews(pageSize, out recordCount);
                foreach (NewsInfo info in list) 
                {
                    %>
                    <li class="clearfix">
                        <a href='detail.aspx?id=<%= info.NewsID %>'><%= info.NewsTitle %></a>
                        <span>[<%= info.OnlineTime.ToString("yyyy-MM-dd") %>]</span>
                    </li>
                    <%
                }
            %>
        </ul>
        <div class="clearfix"></div>
    </div>
    <div class="pager">
    <%
        Com.Ompchina.Lib.Text.Pager.ResponsePager(Response, Request.Url.AbsolutePath, "tid=" + TId
            , false, true, true, false, "", "上一页", "下一页", "", PageIndex, pageSize, recordCount, 5);
    %>
    </div>
</div>
</asp:Content>
